#include <stdio.h>
#include <stdlib.h>

int main()
{
    FILE * fd;
    fd = fopen("/dev/console", "w" );

    if(NULL == fd) {
        fprintf(stderr, "open /dev/console error.\n");
        exit(1);
    }

    fprintf(fd,"hello console.\n");
    return 0;
}
